package Chpter4;

interface Animal8{
	int ID=1;
	void breathe();
	void run();
}
//定义了一个LANDANIMAL借口，并继承了Animal8接口
interface LandAnimal extends Animal8{
	void liveOnLand();
}

class Dog8 implements LandAnimal{
	public void breathe() {
		System.out.println("Dog is breathing.");
	}
	public void run() {
		System.out.println("Dog is running.");
	}
	public void liveOnLand() {
		System.out.println("Dog is living on the land.");
	}
}
public class Example12 {
	public static void main(String[] args) {
		Dog8 dog=new Dog8();
		dog.breathe();
		dog.run();
		dog.liveOnLand();
		
	}

}
